<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>ReflectionMethod 类</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="reflectionfunctionabstract.tostring.html">« ReflectionFunctionAbstract::__toString</a></li>
      <li style="float: right;"><a href="reflectionmethod.construct.html">ReflectionMethod::__construct »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="book.reflection.html">反射</a></li>
    <li>ReflectionMethod 类</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="class.reflectionmethod" class="reference">

 <h1 class="title">ReflectionMethod 类</h1>
 

 <div class="partintro"><p class="verinfo">(PHP 5, PHP 7, PHP 8)</p>


  <div class="section" id="reflectionmethod.intro">
   <h2 class="title">简介</h2>
   <p class="para">
    <span class="classname"><strong class="classname">ReflectionMethod</strong></span> 类报告有关方法的信息。
   </p>
  </div>


  <div class="section" id="reflectionmethod.synopsis">
   <h2 class="title">类摘要</h2>


   <div class="classsynopsis">
    <div class="ooclass">
     
    </div>

    <div class="classsynopsisinfo">
     <span class="ooclass">
      <span class="modifier">class</span> <strong class="classname">ReflectionMethod</strong>
     </span>

     <span class="ooclass">
      <span class="modifier">extends</span>
       <a href="class.reflectionfunctionabstract.html" class="classname">ReflectionFunctionAbstract</a>
     </span>
     {</div>

    <div class="classsynopsisinfo classsynopsisinfo_comment">/* 常量 */</div>
    <div class="fieldsynopsis">
     <span class="modifier">public</span>
     <span class="modifier">const</span>
     <span class="type">int</span>
      <var class="fieldsynopsis_varname"><a href="class.reflectionmethod.html#reflectionmethod.constants.is-static"><var class="varname">IS_STATIC</var></a></var>;</div>

    <div class="fieldsynopsis"><span class="modifier">public</span>
     <span class="modifier">const</span>
     <span class="type">int</span>
      <var class="fieldsynopsis_varname"><a href="class.reflectionmethod.html#reflectionmethod.constants.is-public"><var class="varname">IS_PUBLIC</var></a></var>;</div>

    <div class="fieldsynopsis"><span class="modifier">public</span>
     <span class="modifier">const</span>
     <span class="type">int</span>
      <var class="fieldsynopsis_varname"><a href="class.reflectionmethod.html#reflectionmethod.constants.is-protected"><var class="varname">IS_PROTECTED</var></a></var>;</div>

    <div class="fieldsynopsis"><span class="modifier">public</span>
     <span class="modifier">const</span>
     <span class="type">int</span>
      <var class="fieldsynopsis_varname"><a href="class.reflectionmethod.html#reflectionmethod.constants.is-private"><var class="varname">IS_PRIVATE</var></a></var>;</div>

    <div class="fieldsynopsis"><span class="modifier">public</span>
     <span class="modifier">const</span>
     <span class="type">int</span>
      <var class="fieldsynopsis_varname"><a href="class.reflectionmethod.html#reflectionmethod.constants.is-abstract"><var class="varname">IS_ABSTRACT</var></a></var>;</div>

    <div class="fieldsynopsis"><span class="modifier">public</span>
     <span class="modifier">const</span>
     <span class="type">int</span>
      <var class="fieldsynopsis_varname"><a href="class.reflectionmethod.html#reflectionmethod.constants.is-final"><var class="varname">IS_FINAL</var></a></var>;</div>


    <div class="classsynopsisinfo classsynopsisinfo_comment">/* 属性 */</div>
    <div class="fieldsynopsis"><span class="modifier">public</span>
     <span class="type">string</span>
      <var class="varname"><a href="class.reflectionmethod.html#reflectionmethod.props.class">$<var class="varname">class</var></a></var>;</div>


    <div class="classsynopsisinfo classsynopsisinfo_comment">/* 继承的属性 */</div>
    <div class="fieldsynopsis"><span class="modifier">public</span>
     <span class="type">string</span>
      <var class="varname"><a href="class.reflectionfunctionabstract.html#reflectionfunctionabstract.props.name">$<var class="varname">name</var></a></var>;</div>


    <div class="classsynopsisinfo classsynopsisinfo_comment">/* 方法 */</div>
    <div class="constructorsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><a href="reflectionmethod.construct.html" class="methodname">__construct</a></span>(<span class="methodparam"><span class="type"><span class="type">object</span>|<span class="type">string</span></span> <code class="parameter">$objectOrMethod</code></span>, <span class="methodparam"><span class="type">string</span> <code class="parameter">$method</code></span>)</div>
<div class="constructorsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionmethod.construct.html" class="methodname">__construct</a></span>(<span class="methodparam"><span class="type">string</span> <code class="parameter">$classMethod</code></span>)</div>

    <div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="modifier">static</span> <span class="methodname"><a href="reflectionmethod.export.html" class="methodname">export</a></span>(<span class="methodparam"><span class="type">string</span> <code class="parameter">$class</code></span>, <span class="methodparam"><span class="type">string</span> <code class="parameter">$name</code></span>, <span class="methodparam"><span class="type">bool</span> <code class="parameter">$return</code><span class="initializer"> = <strong><code>false</code></strong></span></span>): <span class="type">string</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionmethod.getclosure.html" class="methodname">getClosure</a></span>(<span class="methodparam"><span class="type">?</span><span class="type"><span class="type">object</span><span class="type"></span></span> <code class="parameter">$object</code><span class="initializer"> = <strong><code>null</code></strong></span></span>): <span class="type"><a href="class.closure.html" class="type Closure">Closure</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionmethod.getdeclaringclass.html" class="methodname">getDeclaringClass</a></span>(): <span class="type"><a href="class.reflectionclass.html" class="type ReflectionClass">ReflectionClass</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionmethod.getmodifiers.html" class="methodname">getModifiers</a></span>(): <span class="type">int</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionmethod.getprototype.html" class="methodname">getPrototype</a></span>(): <span class="type"><a href="class.reflectionmethod.html" class="type ReflectionMethod">ReflectionMethod</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionmethod.hasprototype.html" class="methodname">hasPrototype</a></span>(): <span class="type">bool</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionmethod.invoke.html" class="methodname">invoke</a></span>(<span class="methodparam"><span class="type">?</span><span class="type"><span class="type">object</span><span class="type"></span></span> <code class="parameter">$object</code></span>, <span class="methodparam"><span class="type"><a href="language.types.declarations.html#language.types.declarations.mixed" class="type mixed">mixed</a></span> <code class="parameter">...$args</code></span>): <span class="type"><a href="language.types.declarations.html#language.types.declarations.mixed" class="type mixed">mixed</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionmethod.invokeargs.html" class="methodname">invokeArgs</a></span>(<span class="methodparam"><span class="type">?</span><span class="type"><span class="type">object</span><span class="type"></span></span> <code class="parameter">$object</code></span>, <span class="methodparam"><span class="type">array</span> <code class="parameter">$args</code></span>): <span class="type"><a href="language.types.declarations.html#language.types.declarations.mixed" class="type mixed">mixed</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionmethod.isabstract.html" class="methodname">isAbstract</a></span>(): <span class="type">bool</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionmethod.isconstructor.html" class="methodname">isConstructor</a></span>(): <span class="type">bool</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionmethod.isdestructor.html" class="methodname">isDestructor</a></span>(): <span class="type">bool</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionmethod.isfinal.html" class="methodname">isFinal</a></span>(): <span class="type">bool</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionmethod.isprivate.html" class="methodname">isPrivate</a></span>(): <span class="type">bool</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionmethod.isprotected.html" class="methodname">isProtected</a></span>(): <span class="type">bool</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionmethod.ispublic.html" class="methodname">isPublic</a></span>(): <span class="type">bool</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionmethod.isstatic.html" class="methodname">isStatic</a></span>(): <span class="type">bool</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionmethod.setaccessible.html" class="methodname">setAccessible</a></span>(<span class="methodparam"><span class="type">bool</span> <code class="parameter">$accessible</code></span>): <span class="type"><span class="type void">void</span></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionmethod.tostring.html" class="methodname">__toString</a></span>(): <span class="type">string</span></div>


    <div class="classsynopsisinfo classsynopsisinfo_comment">/* 继承的方法 */</div>
    <div class="methodsynopsis dc-description"><span class="modifier">private</span> <span class="methodname"><a href="reflectionfunctionabstract.clone.html" class="methodname">ReflectionFunctionAbstract::__clone</a></span>(): <span class="type"><span class="type void">void</span></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionfunctionabstract.getattributes.html" class="methodname">ReflectionFunctionAbstract::getAttributes</a></span>(<span class="methodparam"><span class="type">?</span><span class="type"><span class="type">string</span><span class="type"></span></span> <code class="parameter">$name</code><span class="initializer"> = <strong><code>null</code></strong></span></span>, <span class="methodparam"><span class="type">int</span> <code class="parameter">$flags</code><span class="initializer"> = 0</span></span>): <span class="type">array</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionfunctionabstract.getclosurescopeclass.html" class="methodname">ReflectionFunctionAbstract::getClosureScopeClass</a></span>(): <span class="type"><span class="type">?</span><span class="type"><a href="class.reflectionclass.html" class="type ReflectionClass">ReflectionClass</a></span></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionfunctionabstract.getclosurethis.html" class="methodname">ReflectionFunctionAbstract::getClosureThis</a></span>(): <span class="type"><span class="type">?</span><span class="type">object</span></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionfunctionabstract.getclosureusedvariables.html" class="methodname">ReflectionFunctionAbstract::getClosureUsedVariables</a></span>(): <span class="type">array</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionfunctionabstract.getdoccomment.html" class="methodname">ReflectionFunctionAbstract::getDocComment</a></span>(): <span class="type"><span class="type">string</span>|<span class="type"><span class="type false">false</span></span></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionfunctionabstract.getendline.html" class="methodname">ReflectionFunctionAbstract::getEndLine</a></span>(): <span class="type"><span class="type">int</span>|<span class="type"><span class="type false">false</span></span></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionfunctionabstract.getextension.html" class="methodname">ReflectionFunctionAbstract::getExtension</a></span>(): <span class="type"><span class="type">?</span><span class="type"><a href="class.reflectionextension.html" class="type ReflectionExtension">ReflectionExtension</a></span></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionfunctionabstract.getextensionname.html" class="methodname">ReflectionFunctionAbstract::getExtensionName</a></span>(): <span class="type"><span class="type">string</span>|<span class="type"><span class="type false">false</span></span></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionfunctionabstract.getfilename.html" class="methodname">ReflectionFunctionAbstract::getFileName</a></span>(): <span class="type"><span class="type">string</span>|<span class="type"><span class="type false">false</span></span></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionfunctionabstract.getname.html" class="methodname">ReflectionFunctionAbstract::getName</a></span>(): <span class="type">string</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionfunctionabstract.getnamespacename.html" class="methodname">ReflectionFunctionAbstract::getNamespaceName</a></span>(): <span class="type">string</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionfunctionabstract.getnumberofparameters.html" class="methodname">ReflectionFunctionAbstract::getNumberOfParameters</a></span>(): <span class="type">int</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionfunctionabstract.getnumberofrequiredparameters.html" class="methodname">ReflectionFunctionAbstract::getNumberOfRequiredParameters</a></span>(): <span class="type">int</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionfunctionabstract.getparameters.html" class="methodname">ReflectionFunctionAbstract::getParameters</a></span>(): <span class="type">array</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionfunctionabstract.getreturntype.html" class="methodname">ReflectionFunctionAbstract::getReturnType</a></span>(): <span class="type"><span class="type">?</span><span class="type"><a href="class.reflectiontype.html" class="type ReflectionType">ReflectionType</a></span></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionfunctionabstract.getshortname.html" class="methodname">ReflectionFunctionAbstract::getShortName</a></span>(): <span class="type">string</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionfunctionabstract.getstartline.html" class="methodname">ReflectionFunctionAbstract::getStartLine</a></span>(): <span class="type"><span class="type">int</span>|<span class="type"><span class="type false">false</span></span></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionfunctionabstract.getstaticvariables.html" class="methodname">ReflectionFunctionAbstract::getStaticVariables</a></span>(): <span class="type">array</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionfunctionabstract.gettentativereturntype.html" class="methodname">ReflectionFunctionAbstract::getTentativeReturnType</a></span>(): <span class="type"><span class="type">?</span><span class="type"><a href="class.reflectiontype.html" class="type ReflectionType">ReflectionType</a></span></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionfunctionabstract.hasreturntype.html" class="methodname">ReflectionFunctionAbstract::hasReturnType</a></span>(): <span class="type">bool</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionfunctionabstract.hastentativereturntype.html" class="methodname">ReflectionFunctionAbstract::hasTentativeReturnType</a></span>(): <span class="type">bool</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionfunctionabstract.innamespace.html" class="methodname">ReflectionFunctionAbstract::inNamespace</a></span>(): <span class="type">bool</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionfunctionabstract.isclosure.html" class="methodname">ReflectionFunctionAbstract::isClosure</a></span>(): <span class="type">bool</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionfunctionabstract.isdeprecated.html" class="methodname">ReflectionFunctionAbstract::isDeprecated</a></span>(): <span class="type">bool</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionfunctionabstract.isgenerator.html" class="methodname">ReflectionFunctionAbstract::isGenerator</a></span>(): <span class="type">bool</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionfunctionabstract.isinternal.html" class="methodname">ReflectionFunctionAbstract::isInternal</a></span>(): <span class="type">bool</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionfunctionabstract.isuserdefined.html" class="methodname">ReflectionFunctionAbstract::isUserDefined</a></span>(): <span class="type">bool</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionfunctionabstract.isvariadic.html" class="methodname">ReflectionFunctionAbstract::isVariadic</a></span>(): <span class="type">bool</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionfunctionabstract.returnsreference.html" class="methodname">ReflectionFunctionAbstract::returnsReference</a></span>(): <span class="type">bool</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">abstract</span> <span class="modifier">public</span> <span class="methodname"><a href="reflectionfunctionabstract.tostring.html" class="methodname">ReflectionFunctionAbstract::__toString</a></span>(): <span class="type"><span class="type void">void</span></span></div>

   }</div>


  </div>

  

  <div class="section" id="reflectionmethod.props">
   <h2 class="title">属性</h2>
   <dl>
    
     <dt id="reflectionmethod.props.name"><var class="varname">name</var></dt>

     <dd>

      <p class="para">方法名</p>
     </dd>

    
    
     <dt id="reflectionmethod.props.class"><var class="varname">class</var></dt>

     <dd>

      <p class="para">类名</p>
     </dd>

    
   </dl>

  </div>




  <div class="section" id="reflectionmethod.constants">
   <h2 class="title">预定义常量</h2>
   <div class="section" id="reflectionmethod.constants.modifiers">
    <h2 class="title">ReflectionMethod 修饰符</h2>
    <dl>

     
      <dt id="reflectionmethod.constants.is-static"><strong><code>ReflectionMethod::IS_STATIC</code></strong></dt>

      <dd>

       <p class="para">
        表示该方法是 static。在 PHP 7.4.0 之前，值为 <code class="literal">1</code>。
       </p>
      </dd>

     

     
      <dt id="reflectionmethod.constants.is-public"><strong><code>ReflectionMethod::IS_PUBLIC</code></strong></dt>

      <dd>

       <p class="para">
        表示该方法是 public。在 PHP 7.4.0 之前，值为 <code class="literal">256</code>。
       </p>
      </dd>

     

     
      <dt id="reflectionmethod.constants.is-protected"><strong><code>ReflectionMethod::IS_PROTECTED</code></strong></dt>

      <dd>

       <p class="para">
        表示该方法是 protected。在 PHP 7.4.0 之前，值为 <code class="literal">512</code>。
       </p>
      </dd>

     

     
      <dt id="reflectionmethod.constants.is-private"><strong><code>ReflectionMethod::IS_PRIVATE</code></strong></dt>

      <dd>

       <p class="para">
        表示该方法是 private。在 PHP 7.4.0 之前，值为 <code class="literal">1024</code>。
       </p>
      </dd>

     

     
      <dt id="reflectionmethod.constants.is-abstract"><strong><code>ReflectionMethod::IS_ABSTRACT</code></strong></dt>

      <dd>

       <p class="para">
        表示该方法是 abstract。PHP 7.4.0 之前，值为 <code class="literal">2</code>。
       </p>
      </dd>

     

     
      <dt id="reflectionmethod.constants.is-final"><strong><code>ReflectionMethod::IS_FINAL</code></strong></dt>

      <dd>

       <p class="para">
        表示该方法是 final。PHP 7.4.0 之前，值为 <code class="literal">4</code>。
       </p>
      </dd>

     

    </dl>

    <blockquote class="note"><p><strong class="note">注意</strong>: 
     <p class="para">
      这些常量的值可能会在不同 PHP 版本间发生更改。建议始终使用常量而不直接依赖值。
     </p>
    </p></blockquote>
   </div>
  </div>



 </div>

 
























































































































































<h2>目录</h2><ul class="chunklist chunklist_reference"><li><a href="reflectionmethod.construct.html">ReflectionMethod::__construct</a> — 构造 ReflectionMethod</li><li><a href="reflectionmethod.export.html">ReflectionMethod::export</a> — 导出 reflection 方法</li><li><a href="reflectionmethod.getclosure.html">ReflectionMethod::getClosure</a> — 返回动态建立的方法调用接口（译者注：可以使用这个返回值直接调用非公开方法）</li><li><a href="reflectionmethod.getdeclaringclass.html">ReflectionMethod::getDeclaringClass</a> — 获取被反射的方法所在类的反射实例</li><li><a href="reflectionmethod.getmodifiers.html">ReflectionMethod::getModifiers</a> — 获取方法的修饰符</li><li><a href="reflectionmethod.getprototype.html">ReflectionMethod::getPrototype</a> — 返回方法原型 (如果存在)</li><li><a href="reflectionmethod.hasprototype.html">ReflectionMethod::hasPrototype</a> — Returns whether a method has a prototype</li><li><a href="reflectionmethod.invoke.html">ReflectionMethod::invoke</a> — Invoke</li><li><a href="reflectionmethod.invokeargs.html">ReflectionMethod::invokeArgs</a> — 带参数执行</li><li><a href="reflectionmethod.isabstract.html">ReflectionMethod::isAbstract</a> — 判断方法是否是抽象方法</li><li><a href="reflectionmethod.isconstructor.html">ReflectionMethod::isConstructor</a> — 判断方法是否是构造方法</li><li><a href="reflectionmethod.isdestructor.html">ReflectionMethod::isDestructor</a> — 判断方法是否是析构方法</li><li><a href="reflectionmethod.isfinal.html">ReflectionMethod::isFinal</a> — 判断方法是否定义 final</li><li><a href="reflectionmethod.isprivate.html">ReflectionMethod::isPrivate</a> — 判断方法是否是私有</li><li><a href="reflectionmethod.isprotected.html">ReflectionMethod::isProtected</a> — 判断方法是否是保护方法 (protected)</li><li><a href="reflectionmethod.ispublic.html">ReflectionMethod::isPublic</a> — 判断方法是否是公开方法</li><li><a href="reflectionmethod.isstatic.html">ReflectionMethod::isStatic</a> — 判断方法是否是静态方法</li><li><a href="reflectionmethod.setaccessible.html">ReflectionMethod::setAccessible</a> — 设置方法是否可访问</li><li><a href="reflectionmethod.tostring.html">ReflectionMethod::__toString</a> — 返回反射方法对象的字符串表达</li></ul>
</div>
</div></div></body></html>